package practise;

public class ExceptionTest {
    public static void main(String[] arg){
            ExceptionTest.testException();
    }
    public static void testException(){
        try{
            ExceptionTest.exceptionMethod();
            System.out.println("1");
        }
        catch (RuntimeException e){
            System.out.println("2");
        }
        finally {
            System.out.println("3");
        }
        System.out.println("4");
    }
    public static void exceptionMethod(){
        throw new NullPointerException("");
    }
}
